using IM.Easy.Infrastructure.Query;
using SqlSugar;


namespace IM.Easy.MsgServices.Dtos
{
    /// <summary>
    /// 收件箱表查询实体
    /// </summary>
    public class EmailRecivesQueryDto : QueryBase
    {
        /// <summary>
        /// 收件人ID
        /// </summary>
        public long AudienceId { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 读取状态
        /// </summary>
        public bool? ReadStatus { get; set; }
    }

    /// <summary>
    /// 收件箱表dto
    /// </summary>
    public class EmailRecivesDto
    {
        /// <summary>
        /// 收件箱ID
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 原始邮件ID
        /// </summary>
        public long EmailId { get; set; }

        /// <summary>
        /// 发件人
        /// </summary>
        public long SenderId { get; set; }

        /// <summary>
        /// 受众用户ID
        /// </summary>
        public long AudienceId { get; set; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime ReciveTime { get; set; }
        /// <summary>
        /// 是否已读 (0: 未读, 1: 已读)
        /// </summary>
        public bool IsRead { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsDeleted { get; set; }


    }

}
